//引入封装的公共的请求插件
import { GET, POST, UPLOAD } from "../../services/request";

export default {
  register(data = {}) {
    //注册接口
    //api/user/base/register
    return POST({
      url: "/user/base/register",
      params: data,
    });
  },
  login(data = {}) {
    return POST({
      url: "/user/base/login",
      params: data,
    });
  },
  check(data = {}) {
    return POST({
      url: "/user/base/check",
      params: data,
    });
  },
  profile(data = {}) {
    return UPLOAD({
      url: "/user/base/profile",
      params: data,
    });
  },
  record(data = {}) {
    return GET({
      url: "/user/base/record",
      params: data,
    });
  },
  initRecord(data = {}) {
    return GET({
      url: "/user/base/init_record",
      params: data,
    });
  },
  pay(data = {}) {
    return POST({
      url: "/user/base/pay",
      params: data,
    });
  },
  initExpress(data = {}) {
    return POST({
      url: "/user/base/express",
      params: data,
    });
  },
};
